<%-- 
    Document   : phieudma
    Created on : Feb 1, 2012, 4:48:31 PM
    Author     : Venus
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="java.util.*,Beans.ThamSoHT, Beans.NhanVien, Models.ThamSoHT_Model, Models.NhanVien_Model,  Models.PhieuDatMA_Model, Models.Ban_Model"%>
<%
            int langid = (Integer) session.getAttribute("langid"); // ngôn ngữ hiện tại
            String dsts = " 'rightmsg', 'notice' ";
            ThamSoHT[] mdsts = ThamSoHT_Model.DSThamSo(dsts, langid); // mảng chứa các tham số của trang này.

            String notice = mdsts[0].getTenTS();
            String rightmsg = mdsts[1].getTenTS();

            String msgright = notice + "/" + rightmsg;

            Vector v = (Vector) request.getAttribute("DSBan");

%>
<%  if (v.size() > 0) {%>
<div style="padding-top: 15px;">
    <%
      for (int i = 0; i < v.size(); i++) {
          Beans.Ban kv = (Beans.Ban) v.elementAt(i);%>
    <div style=" width: 90px; float: left; margin-left: 20px;"><%=Ban_Model.LayTenKV(kv.getMaKV(), langid)%></div>
    <div class="seatt" style="float: left; width: 80%;">
        <%
                        Vector dsban = new Vector();
                        PhieuDatMA_Model p = new PhieuDatMA_Model();
                        dsban = p.LayDSBan(kv.getMaKV());
                        for (int j = 0; j < dsban.size(); j++) {
                        Beans.Ban b = (Beans.Ban) dsban.elementAt(j);%>
        <a href="#" class="available" name="<%=b.getMaBan()%>" lang="<%=msgright%>" onclick="DetailDMA(this.name, this.lang)"><center><%=b.getTenBan()%></center></a>
        <%  }%>
    </div><br/>
    <%  }%>
</div>
<%  }%>
